namespace FanG
{
    using System;
    using System.ComponentModel;
    using System.Drawing;

    [TypeConverter(typeof(ExpandableObjectConverter))]
    public class BackgroundAttributes
    {
        private Color _Highlight;
        private Color _Lowlight;
        private Color _Paper;

        public BackgroundAttributes()
        {
            this._Highlight = Color.FromArgb(80, 0xee, 0xed, 0xee);
            this._Lowlight = Color.FromArgb(0xff, 220, 220, 220);
            this._Paper = Color.FromArgb(0xff, Color.White);
        }

        public BackgroundAttributes(Color Highlight, Color Lowlight)
        {
            this._Highlight = Color.FromArgb(80, 0xee, 0xed, 0xee);
            this._Lowlight = Color.FromArgb(0xff, 220, 220, 220);
            this._Paper = Color.FromArgb(0xff, Color.White);
            this.Highlight = Highlight;
            this.Lowlight = Lowlight;
        }

        public BackgroundAttributes(Color Highlight, Color Lowlight, Color Paper)
        {
            this._Highlight = Color.FromArgb(80, 0xee, 0xed, 0xee);
            this._Lowlight = Color.FromArgb(0xff, 220, 220, 220);
            this._Paper = Color.FromArgb(0xff, Color.White);
            this.Highlight = Highlight;
            this.Lowlight = Lowlight;
            this.Paper = Paper;
        }

        [Description("Highlighted Background Color\n背景色的高亮色"), Category("Chartlet")]
        public Color Highlight
        {
            get
            {
                return this._Highlight;
            }
            set
            {
                this._Highlight = value;
            }
        }

        [Category("Chartlet"), Description("Low Light of Background Color\n背景色的暗色")]
        public Color Lowlight
        {
            get
            {
                return this._Lowlight;
            }
            set
            {
                this._Lowlight = value;
            }
        }

        [Category("Chartlet"), Description("sketchpad Color\n画板颜色(最背景的颜色)")]
        public Color Paper
        {
            get
            {
                return this._Paper;
            }
            set
            {
                this._Paper = value;
            }
        }
    }
}

